<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>第八十二节课</title>
    <link rel="stylesheet" href="../css/common.css">
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script>
        // 利用extend()工具函数也可以修改或者设置默认值
        $(function () {
            var setting = {validate: false, limit: 5, name: "foo"};
            var options = {validate: true, name: "bar"};
            jQuery.extend(setting, options);
            console.log(setting);
            console.log(setting.validate);
        })
    </script>
</head>
<body>

</body>
</html>
